1
  2// height of the base
  3h_base = 5;
  4// lower base chamfer "radius"
  5r_c1 = 0.8;
  6// upper base chamfer "radius"
  7r_c2 = 2.4;
  8// bottom thiccness of bin
  9h_bot = 2.2;
 10// outside radii 1
 11r_fo1 = 7.5 / 2;
 12// outside radii 2
 13r_fo2 = 3.2 / 2;
 14// outside radii 3
 15r_fo3 = 1.6 / 2;
 16// length of a grid unit
 17l_grid = 42;
 18
 19
 20// Outside rounded radius of bin
 21// Per spec, matches radius of upper base section.
 22r_base = r_fo1;
 23
 24// screw hole radius
 25r_hole1 = 1.5;
 26// magnet hole radius
 27r_hole2 = 3.25;
 28// center-to-center distance between holes
 29d_hole = 26;
 30// distance of hole from side of bin
 31d_hole_from_side=8;
 32// magnet hole depth
 33h_hole = 2.4;
 34// slit depth (printer layer height)
 35h_slit = 0.2;
 36
 37// top edge fillet radius
 38r_f1 = 0.6;
 39// internal fillet radius
 40r_f2 = 2.8;
 41
 42// width of divider between compartments
 43d_div = 1.2;
 44// minimum wall thickness
 45d_wall = 0.95;
 46// tolerance fit factor
 47d_clear = 0.25;
 48
 49// height of tab (yaxis, measured from inner wall)
 50d_tabh = 15.85;
 51// maximum width of tab
 52d_tabw = 42;
 53// angle of tab
 54a_tab = 36;
 55// lip height
 56h_lip = 3.548;
 57
 58d_wall2 = r_base-r_c1-d_clear*sqrt(2);
 59d_magic = -2*d_clear-2*d_wall+d_div;
 60
 61// Stacking Lip
 62// Based on https://gridfinity.xyz/specification/
 63stacking_lip_inner_slope_height_mm = 0.7;
 64stacking_lip_wall_height_mm = 1.8;
 65stacking_lip_outer_slope_height_mm = 1.9;
 66stacking_lip_depth =
 67    stacking_lip_inner_slope_height_mm +
 68    stacking_lip_outer_slope_height_mm;
 69stacking_lip_height =
 70    stacking_lip_inner_slope_height_mm +
 71    stacking_lip_wall_height_mm +
 72    stacking_lip_outer_slope_height_mm;
 73
 74// Extracted from `profile_wall_sub_sub`.
 75stacking_lip_support_wall_height_mm = 1.2;
 76stacking_lip_support_height_mm =
 77    stacking_lip_support_wall_height_mm + d_wall2;
 78
 79
 80// Baseplate constants
 81
 82// Baseplate bottom part height (part added with weigthed=true)
 83bp_h_bot = 6.4;
 84// Baseplate bottom cutout rectangle size
 85bp_cut_size = 21.4;
 86// Baseplate bottom cutout rectangle depth
 87bp_cut_depth = 4;
 88// Baseplate bottom cutout rounded thingy width
 89bp_rcut_width = 8.5;
 90// Baseplate bottom cutout rounded thingy left
 91bp_rcut_length = 4.25;
 92// Baseplate bottom cutout rounded thingy depth
 93bp_rcut_depth = 2;
 94// Baseplate clearance offset
 95bp_xy_clearance = 0.5;
 96// countersink diameter for baseplate
 97d_cs = 2.5;
 98// radius of cutout for skeletonized baseplate
 99r_skel = 2;
100// baseplate counterbore radius
101r_cb = 2.75;
102// baseplate counterbore depth
103h_cb = 3;
104// minimum baseplate thickness (when skeletonized)
105h_skel = 1;